import axios from 'axios';
import { loginreq, req } from './axiosFun';




export const deviceList = (params) => { return req("post", "/api/faultMaintenance/list/page", params) };

// 用户管理-保存
export const deviceSave = (params) => { return req("post", "/api/faultMaintenance/save", params) };
// 用户管理-编辑
export const deviceEdit = (params) => { return req("post", "/api/faultMaintenance/edit", params) };

// 用户管理-删除用户
export const deviceDelete = (params) => { return axios.delete("/api/faultMaintenance/del/" + params).then(res => res.data) };
// 用户管理-修改状态
export const deviceStatus = (params) => { return req("post", "/api/faultMaintenance/edit", params) };
// 用户管理-批量删除
export const deviceBatchDel = (params) => { return req("post", "/api/faultMaintenance/del/batch", params) };
